<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;


// 首页大屏数据
Route::get('show', 'api/v1.Chimi/show');
Route::get('daily', 'api/v1.Chimi/daily');
Route::group('', function () {
    Route::group('cms', function () {
        // 账户相关接口分组
        Route::group('user', function () {
            // 登陆接口
            Route::post('login', 'api/cms.User/login');
            // 刷新令牌
            Route::get('refresh', 'api/cms.User/refresh');
            // 查询自己拥有的权限
            Route::get('auths', 'api/cms.User/getAllowedApis');
            // 注册一个用户
            Route::post('register', 'api/cms.User/register');
            // 更新头像
            Route::put('avatar','api/cms.User/setAvatar');
            // 查询自己信息
            Route::get('information','api/cms.User/getInformation');
            // 用户更新信息
            Route::put('','api/cms.User/update');
            // 修改自己密码
            Route::put('change_password','api/cms.User/changePassword');
        });
        // 管理类接口
        Route::group('admin', function () {
            // 查询所有权限组
            Route::get('group/all', 'api/cms.Admin/getGroupAll');
            // 查询一个权限组及其权限
            Route::get('group/:id', 'api/cms.Admin/getGroup');
            // 删除一个权限组
            Route::delete('group/:id', 'api/cms.Admin/deleteGroup');
            // 更新一个权限组
            Route::put('group/:id', 'api/cms.Admin/updateGroup');
            // 新建权限组
            Route::post('group', 'api/cms.Admin/createGroup');
            // 查询所有可分配的权限
            Route::get('authority', 'api/cms.Admin/authority');
            // 删除多个权限
            Route::post('remove', 'api/cms.Admin/removeAuths');
            // 添加多个权限
            Route::post('/dispatch/patch', 'api/cms.Admin/dispatchAuths');
            // 查询所有用户
            Route::get('users', 'api/cms.Admin/getAdminUsers');
            // 修改用户密码
            Route::put('password/:uid', 'api/cms.Admin/changeUserPassword');
            // 删除用户
            Route::delete(':uid', 'api/cms.Admin/deleteUser');
            // 更新用户信息
            Route::put(':uid', 'api/cms.Admin/updateUser');
            # 添加菜单
            Route::post('menu', 'api/cms.Menu/createMenu');
            # 删除菜单
            Route::delete('menu/:id', 'api/cms.Menu/deleteMenu');
            # 更新菜单
            Route::put('menu/:id', 'api/cms.Menu/updateMenu');
            # 查询菜单
            Route::get('menu', 'api/cms.Menu/getMenu');
            # 查询指定菜单
            Route::get('menu/one/:id', 'api/cms.Menu/getMenuOne');
            # 树状图菜单
            Route::get('menu/structure', 'api/cms.Menu/getMenuStructure');
            # 查询指定用户路由
            Route::get('menu/appoint/route', 'api/cms.Menu/getAppointUserRoute');
            # 查询用户菜单配置
            Route::get('menu/appoint', 'api/cms.Menu/getAppointMenu');
            # 用户菜单配置变更
            Route::post('menu/appoint', 'api/cms.Menu/setAppointMenu');

        });
        // 日志类接口
        Route::group('log',function (){
            Route::get('', 'api/cms.Log/getLogs');
            Route::get('users', 'api/cms.Log/getUsers');
            Route::get('search', 'api/cms.Log/getUserLogs');
        });
        //上传文件类接口
        Route::post('file','api/cms.File/postFile');
    });
    Route::group('v1', function () {
        Route::group('resolution',function (){
            // location
            Route::get('/location', 'api/v1.Resolution/location');
            // 小红书解析
            Route::get('/xhs', 'api/v1.Resolution/xhs');
            Route::get('/third_xhs', 'api/v1.Resolution/third_xhs');
            // 小红书笔记详细数据
            Route::get('/xhsDetail', 'api/v1.Resolution/xhsDetail');
            // 获取视频真正下载地址
            Route::get('/real', 'api/v1.Resolution/getRealUrl');
            Route::get('/vnil/real', 'api/v1.Resolution/getVnilRealUrl');
            # 全网单个视频/图集解析
            Route::get('/total','api/v1.Resolution/total');
            # 查询快手作者下的视频
            Route::get('/profile','api/v1.Resolution/profile');
            # 新查询快手作者下的视频
            Route::get('/new/profile','api/v1.Resolution/newProfile');
            # 获取授权百家号文章列表
            Route::get('/baijia','api/v1.Resolution/articleListall');

            Route::get('/deal', 'api/v1.Resolution/deal');
            Route::post('/xhsDeal', 'api/v1.Resolution/xhsDeal');

        });

        Route::group('book',function (){
            // 查询所有图书
            Route::get('', 'api/v1.Book/getBooks');
            // 新建图书
            Route::post('', 'api/v1.Book/create');
            // 查询指定bid的图书
            Route::get(':bid', 'api/v1.Book/getBook');
            // 搜索图书

            // 更新图书
            Route::put(':bid', 'api/v1.Book/update');
            // 删除图书
            Route::delete(':bid', 'api/v1.Book/delete');
        });

        Route::group('accounts',function (){
            // 查询用户
            Route::get('list', 'api/v1.Accounts/getAccountList');
            // updateCookie
            Route::post('update', 'api/v1.Accounts/updateCookie');
            // 查询用户
            Route::get('getAccount', 'api/v1.Accounts/getAccount');
            // 新增分发数据
            Route::post('createDistribute', 'api/v1.Accounts/createDistribute');
            // 查询类目
            Route::get('getCategory', 'api/v1.Accounts/getCategory');
            // 查询话题
            Route::get('getTopic', 'api/v1.Accounts/getTopic');
            // 查询标签
            Route::get('getTag', 'api/v1.Accounts/getTag');
            // 查询平台
            Route::get('getPlatform', 'api/v1.Accounts/getPlatform');
            // 新增账户
            Route::post('addAccount', 'api/v1.Accounts/addAccount');
            // 更新账户
            Route::post('updateAccount', 'api/v1.Accounts/updateAccount');
            // 更新账户账户信息 from 逛逛插件
            Route::post('accountUnit', 'api/v1.Accounts/updateAccountByUnit');
            // 获取模型
            Route::get('getModel', 'api/v1.Accounts/getModel');
            // 插件添加账户
            Route::post('plugAdd', 'api/v1.Accounts/plugAdd');
            // 插件启用账户
            Route::get('plugEnable', 'api/v1.Accounts/plugEnable');
            // 插件停用账户
            Route::get('plugUnenable', 'api/v1.Accounts/plugUnenable');

        });

        Route::group('user',function (){
            // 查询用户
            Route::get('getUsers', 'api/v1.User/getUsers');
        });
        Route::group('config',function (){
            // 查询用户
            Route::get('get', 'api/v1.Config/get');
        });
        Route::group('product',function (){
            // 查询商品
            Route::get('getProduct', 'api/v1.Product/getProduct');
            // 新增商品
            Route::post('add', 'api/v1.Product/addProduct');
            // 更新商品
            Route::post('update', 'api/v1.Product/updateProduct');
        });

        Route::group('productintroduce',function (){
            // 拉取话术
            Route::get('getProductText', 'api/v1.ProductIntroduce/getProductText');
            // 回填
            Route::post('backfill', 'api/v1.ProductIntroduce/backfill');

            Route::post('getInfo', 'api/v1.ProductIntroduce/getInfo');

            Route::get('getProductTextList', 'api/v1.ProductIntroduce/getProductTextList');

            Route::post('getIntroduce', 'api/v1.ProductIntroduce/getIntroduce');
            Route::post('getZimu', 'api/v1.ProductIntroduce/getZimu');

        });
        Route::group('temp',function (){
            // 拉取
            Route::get('getKongEvent', 'api/v1.Temp/getKongEvent');
            // 回填
            Route::post('backfillKongEvent', 'api/v1.Temp/backfillKongEvent');
            // 拉取
            Route::get('getZimuEvent', 'api/v1.Temp/getZimuEvent');
            // 回填
            Route::post('backfillZimuEvent', 'api/v1.Temp/backfillZimuEvent');
            //新增
            Route::post('addKongVideo', 'api/v1.Temp/addKongVideo');
            //查重
            Route::post('checkKongVideo', 'api/v1.Temp/checkKongVideo');
            //查询
            Route::post('getKongVideo', 'api/v1.Temp/getKongVideo');
            //查询商品配置
            Route::get('getProductConfig', 'api/v1.Temp/getProductConfig');
//            Route::post('setProductConfig', 'api/v1.Temp/setProductConfig');
            //设置脚本
            Route::post('setProductScript', 'api/v1.Temp/setProductScript');
            //获取脚本
            Route::get('getProductScript', 'api/v1.Temp/getProductScript');

        });
        Route::group('sd',function (){
            // 新增
            Route::post('addEvent', 'api/v1.Sd/addEvent');
            Route::post('addMaterial', 'api/v1.Sd/addMaterial');
            Route::post('addScript', 'api/v1.Sd/addScript');
            Route::post('checkScript', 'api/v1.Sd/checkScript');
            Route::post('checkMaterial', 'api/v1.Sd/checkMaterial');
            // 领取下单任务（逛逛四版）
            Route::get('getOrderEvent', 'api/v1.Sd/getOrderEvent');
            // 回填
            Route::post('backfillEvent', 'api/v1.Sd/backfillEvent');
            Route::get('getVideoEvent', 'api/v1.Sd/getVideoEvent');
            // 任务列表
            Route::post('list', 'api/v1.Sd/list');
            // 重置失败状态
            Route::get('resetEvent', 'api/v1.Sd/resetEvent');
            // 后台批量提交脚本
            Route::post('createScript', 'api/v1.Sd/createScript');
            // 脚本列表
            Route::post('scriptList', 'api/v1.Sd/scriptList');
            // 获取脚本
            Route::get('getScriptById', 'api/v1.Sd/getScriptById');
            // 修改脚本
            Route::post('modifyScript', 'api/v1.Sd/modifyScript');
            // 批量审核
            Route::post('batchCheck', 'api/v1.Sd/batchCheck');
            // 八斗导出
            Route::get('getListById', 'api/v1.Sd/getListById');
            // 小编导出
            Route::get('getListByIdForXB', 'api/v1.Sd/getListByIdForXB');
            // 八斗回填
            Route::post('importXHSExport', 'api/v1.Sd/importXHSExport');
            // 小红书导出
            Route::get('exportForXHS', 'api/v1.Sd/exportForXHS');
            // 设置优先
            Route::post('setTop', 'api/v1.Sd/setTop');
            // 脚本复制
            Route::post('copyScript', 'api/v1.Sd/copyScript');
            Route::post('addEventByPname', 'api/v1.Sd/addEventByPname');
            Route::get('getVideo', 'api/v1.Sd/getVideo');

        });


        Route::group('chimi',function (){
            // 素材填充
            Route::post('material', 'api/v1.Chimi/addMaterial');
            Route::get('materials', 'api/v1.Chimi/getMaterialsByUser');
            Route::post('material_details', 'api/v1.Chimi/addMaterialDetails');

            Route::post('addEvent', 'api/v1.Chimi/addEvent');
            Route::get('resetEvent', 'api/v1.Chimi/resetEvent');
            Route::get('getVideoEvent', 'api/v1.Chimi/getVideoEvent');
            Route::post('backfillEvent', 'api/v1.Chimi/backfillEvent');
            Route::get('getOrderEvent', 'api/v1.Chimi/getOrderEvent');
            Route::post('list', 'api/v1.Chimi/list');
            Route::get('signDownload', 'api/v1.Chimi/signDownload');
            Route::get('getListById', 'api/v1.Chimi/getListById');

            // 选品入库
            Route::post('xuanp', 'api/v1.Chimi/addXuanp');
            // 修改选品
            Route::post('editXuanp', 'api/v1.Chimi/editXuanp');
            // 爆率选品清单
            Route::get('xuanp', 'api/v1.Chimi/xuanp');

            //3.0
            Route::post('videoToZimu', 'api/v1.Chimi/videoToZimu');
            Route::post('addImageEvent', 'api/v1.Chimi/addImageEvent');
            Route::get('checkImgEvent', 'api/v1.Chimi/checkImgEvent');
            Route::get('getImgEvent', 'api/v1.Chimi/getImgEvent');
            Route::post('backFillImg', 'api/v1.Chimi/backFillImg');
            Route::post('addEventNew', 'api/v1.Chimi/addEventNew');
            Route::get('getOrderEventV3', 'api/v1.Chimi/getOrderEventV3');
            Route::post('backfillEventV3', 'api/v1.Chimi/backfillEventV3');


        });

        Route::group('video',function (){
            // 素材填充
            Route::post('material', 'api/v1.Video/addProductVideos');
            // 获取待裁剪素材
            Route::get('material', 'api/v1.Video/getVideoToCut');
            // 回填素材原视频(拉取提交、拉取弃用、商品视频列表弃用)
            Route::post('rewriteVideo', 'api/v1.Video/rewriteVideo');
            // 上传切片素材 (data)
            Route::post('addMaterial', 'api/v1.Video/addMaterial');

            // 抖老板模块 ----------------------------
            // 抖老板商品入库
            Route::post('doulaoban/product', 'api/v1.Video/addDoulaobanProduct');
            // 抖老板商品获取
            Route::get('doulaoban', 'api/v1.Video/getDoulaobanToCollect');
            Route::post('doulaoban/rewrite', 'api/v1.Video/doulaobanRewrite');
            // 抖老板模块 ----------------------------

            // 商品模块 -----------------------------
            // 获取需要采集商品视频的商品
            Route::get('getProductOne', 'api/v1.Video/getProductOne');
            // 回填商品状态
            Route::post('backfillProductOne', 'api/v1.Video/backfillProductOne');
            // 重置商品状态
            Route::get('resetProduct', 'api/v1.Video/resetProduct');

            // 商品模块 -----------------------------


            // 数据面板---------------------------
            Route::get('data', 'api/v1.Video/data');
            Route::get('daily', 'api/v1.Video/daily');
            Route::get('userData', 'api/v1.Video/userData');




            // 数据面板end------------------------

            // 商品列表
            Route::get('productList', 'api/v1.Video/productList');
            // 导出
            Route::get('export', 'api/v1.Video/export');
            // 指定商品的素材列表 (douyin_pid) 抖音素材换一换
            Route::get('getProductMaterial', 'api/v1.Video/getProductMaterial');
            // 更新素材使用次数
            Route::get('signUseNum', 'api/v1.Video/signUseNum');
            // ai写文案
            Route::post('aiText', 'api/v1.Video/aiText');
            Route::post('aiTextNew', 'api/v1.Video/aiTextNew');
            Route::post('aiTextJd', 'api/v1.Video/aiTextJd');
            // 七牛线上删除
            Route::get('delQiniu', 'api/v1.Video/delQiniu');
            // 京东拉取
            Route::get('jdPull', 'api/v1.Video/jdPull');
            // 抖音拉取
            Route::get('dyPull', 'api/v1.Video/dyPull');
            // 交换一条
            Route::post('exchangeOne', 'api/v1.Video/exchangeOne');
            // 创建视频
            Route::post('addEvent', 'api/v1.Video/addEvent');
            // 处理视频
            Route::get('getVideoEvent', 'api/v1.Video/getVideoEvent');
            // 回填视频处理
            Route::post('backfillEvent', 'api/v1.Video/backfillEvent');
            // 上传视频
            Route::post('uploadFile', 'api/v1.Video/uploadFile');
            // 视频列表
            Route::post('list', 'api/v1.Video/list');
            //视频审核
            Route::patch('batchCheck', 'api/v1.Video/batchCheck');
            //审核弃用
            Route::post('checkUseless', 'api/v1.Video/checkUseless');
            // 下载视频
            Route::get('getListById', 'api/v1.Video/getListById');
            // 查看数量
            Route::get('getMaterialNum', 'api/v1.Video/getMaterialNum');
            Route::get('updateMaterialNum', 'api/v1.Video/updateMaterialNum');
            Route::get('getProduct', 'api/v1.Video/getProduct');

            // 获取待生成字幕任务
            Route::get('getTextEvent', 'api/v1.Video/getTextEvent');
            // 回填字幕任务
            Route::post('backfillTextEvent', 'api/v1.Video/backfillTextEvent');
            //
            Route::post('videosList', 'api/v1.Video/videosList');
            //
            Route::get('videosPull', 'api/v1.Video/videosPull');
            // 更新产品 jd_pid tb_pid category
            Route::post('updateProject', 'api/v1.Video/updateProject');
            Route::get('upDouyinTest', 'api/v1.Video/upDouyinTest');
            // 获取tb当日分配情况
            Route::get('tbCount', 'api/v1.Video/tbCount');
            // 手动添加商品
            Route::post('addProduct', 'api/v1.Video/addProduct');
            // 手动添加视频
            Route::post('addVideos', 'api/v1.Video/addVideos');
            // 下载批量回填 未下载的恢复
            Route::post('backfillDownload', 'api/v1.Video/backfillDownload');
            // 删除产品及相关
            Route::get('delCount', 'api/v1.Video/delCount');
            Route::get('delProduct', 'api/v1.Video/delProduct');
            //修改任务信息
            Route::get('updateEvent', 'api/v1.Video/updateEvent');
            // 处理失败重置
            Route::get('resetEvent', 'api/v1.Video/resetEvent');







        });



        Route::group('model',function (){
            // 新增
            Route::post('addEvent', 'api/v1.Model/addEvent');
            // 拉取
            Route::get('getEvent', 'api/v1.Model/getEvent');
            // 回填
            Route::post('backfillEvent', 'api/v1.Model/backfillEvent');
            // 返回可用模特
            Route::get('usableModel', 'api/v1.Model/usableModel');
            // 新增分发
            Route::post('createModelDis', 'api/v1.Model/createModelDis');
            // 领取任务（逛逛三版）
            Route::get('getVideoEvent', 'api/v1.Model/getVideoEvent');
            // 领取下单任务（逛逛三版）
            Route::get('getOrderEvent', 'api/v1.Model/getOrderEvent');
            // 任务列表（逛逛三版）
            Route::post('list', 'api/v1.Model/list');
            // 根据id任务（逛逛三版）
            Route::get('getListById', 'api/v1.Model/getListById');
            // 统计每日各平台发布数
            Route::get('pubCount', 'api/v1.Model/pubCount');
            // 重置失败状态
            Route::get('resetEvent', 'api/v1.Model/resetEvent');
            // 创建混剪任务
            Route::get('createHjEvent', 'api/v1.Model/createHjEvent');
            // 京东导出回填
            Route::post('importJdExport', 'api/v1.Model/importJdExport');
            // 导出人设视频 用于发布京东
            Route::get('exportForJD', 'api/v1.Model/exportForJD');

        });

        Route::group('tb',function (){
            Route::post('upProduct', 'api/v1.Tb/upProduct');
            Route::post('upOrder', 'api/v1.Tb/upOrder');
            Route::post('upAccount', 'api/v1.Tb/upAccount');
            Route::post('upProRate', 'api/v1.Tb/upProRate');
            Route::post('importProduct', 'api/v1.Tb/importProduct');
            Route::post('importAccount', 'api/v1.Tb/importAccount');
            Route::post('importOrder', 'api/v1.Tb/importOrder');
            Route::post('list', 'api/v1.Tb/list');
            Route::get('getCategory', 'api/v1.Tb/getCategory');
            Route::get('getAccount', 'api/v1.Tb/getAccount');
            Route::get('clearAccount', 'api/v1.Tb/clearAccount');
            Route::get('clearProduct', 'api/v1.Tb/clearProduct');

            //直播中控弹窗记录
            Route::post('insertLog', 'api/v1.Tb/insertLog');
            Route::post('uploadPicUrl', 'api/v1.Tb/uploadPicUrl');
            Route::get('getCurAudio', 'api/v1.Tb/getCurAudio');
            Route::post('getAudios', 'api/v1.Tb/getAudios');
            Route::post('addAudio', 'api/v1.Tb/addAudio');
            Route::get('getAudio', 'api/v1.Tb/getAudio');
            Route::post('setAudio', 'api/v1.Tb/setAudio');

        });

        Route::group('live',function (){
            // -------- 跟播模块 -------------
            Route::post('genbo', 'api/v1.Live/genbo');
            Route::post('genbo/edit', 'api/v1.Live/editGenbo');
            Route::post('genbo/del', 'api/v1.Live/delGenbo');
            Route::get('genbo', 'api/v1.Live/getGenboList');
            Route::post('genbo/run', 'api/v1.Live/genboRun');
            Route::get('gbdetail', 'api/v1.Live/getGenboDetail');
            // -------- 跟播模块 -------------



            // 目前数据库的所有音色
            Route::get('voice/all', 'api/v1.Live/getVoiceAll');
            Route::get('voice/name', 'api/v1.Live/getVoiceByName');
            Route::get('voice/huo', 'api/v1.Live/getHuoVoice');
            Route::get('voice/voice', 'api/v1.Live/getVoiceByVoice');
            Route::get('voice/huovoice', 'api/v1.Live/getVoiceByHuoVoice');
            Route::get('voice/bobavoice', 'api/v1.Live/getVoiceByBobaVoice');
            Route::get('voice/random', 'api/v1.Live/randomHuoVoice');
            // 把线上的声音同步到逛逛系统
            Route::post('voice/sync', 'api/v1.Live/voiceSync');
            Route::post('voice/edit', 'api/v1.Live/editVoice');



            // 获取商品列表
            Route::get('product', 'api/v1.Live/getProduct');



            // 新增商品
            Route::post('product', 'api/v1.Live/addProduct');

            // 修改商品
            Route::post('editProduct', 'api/v1.Live/editProduct');
            // 修改商品
            Route::post('delProduct', 'api/v1.Live/delProduct');

            // 组长列表
            Route::get('product/leader', 'api/v1.Live/leaderList');
            // 获取前任务
            Route::get('product/getLastTask', 'api/v1.Live/getLastTask');


            // 新增直播话术
            Route::post('product/text', 'api/v1.Live/addText');
            // 修改直播话术
            Route::post('product/editText', 'api/v1.Live/editText');
            // 删除直播话术
            Route::post('product/delText', 'api/v1.Live/delText');
            // 获取待改写话术
            Route::get('product/getProductText', 'api/v1.Live/getProductText');
            Route::post('product/backProductText', 'api/v1.Live/backProductText');

            // 获取话术列表
            Route::get('product/text', 'api/v1.Live/getTextByProduct');
            // 新增直播任务
            Route::post('product/task', 'api/v1.Live/addTask');
            Route::post('product/addTaskChild', 'api/v1.Live/addTaskChild');
            Route::post('product/addTaskChildZb', 'api/v1.Live/addTaskChildZb');
            Route::get('product/addTaskChildFb', 'api/v1.Live/addTaskChildFb');
            Route::get('product/getTaskChild', 'api/v1.Live/getTaskChild');
            // 临时用
            Route::get('product/getTaskChild11', 'api/v1.Live/getTaskChild11');
            Route::get('product/getBatchTaskChild', 'api/v1.Live/getBatchTaskChild');
            Route::post('product/setTaskChild', 'api/v1.Live/setTaskChild');
            Route::get('product/taskTextCount', 'api/v1.Live/taskTextCount');
            Route::get('product/get4000General', 'api/v1.Live/get4000General');
            Route::get('product/getTask11', 'api/v1.Live/getTask11');
            Route::get('product/getGeneralText', 'api/v1.Live/getGeneralText');
            Route::get('product/checkTask', 'api/v1.Live/checkTask'); // 检查话术音频是否跑完
            Route::get('product/checkProduct', 'api/v1.Live/checkProduct'); // 检查商品话术是否裂变完成
            Route::post('product/getbatchText', 'api/v1.Live/getbatchText'); // 分批拿取话术
            Route::get('product/checkTaskStatus', 'api/v1.Live/checkTaskStatus');

            // 获取直播任务
            Route::get('product/task', 'api/v1.Live/getTask');
            // 获取任务列表
            Route::get('product/task/list', 'api/v1.Live/getTaskList');

            // 任务回填
            Route::post('product/backTask', 'api/v1.Live/backTask');
            Route::get('product/resetStatus', 'api/v1.Live/resetStatus');
            Route::get('product/setTopTask', 'api/v1.Live/setTopTask');
            Route::get('product/getTopTask', 'api/v1.Live/getTopTask');


            // 直播短视频报表
            // 投放消耗入库
            Route::post('consume', 'api/v1.Live/consume');
            // 团长利润入库
            Route::post('commander', 'api/v1.Live/commander');
            // 抖音账号数据入库
            Route::post('contact', 'api/v1.Live/contact');
            Route::post('addContact', 'api/v1.Live/addContact');
            // 订单数据批量入库
            Route::post('major', 'api/v1.Live/major');
            // 报表自动计算
            Route::get('count', 'api/v1.Live/count');
            Route::get('countDy', 'api/v1.Live/countDy');
            Route::get('countTb', 'api/v1.Live/countTb');
            Route::get('countTbAccount', 'api/v1.Live/countTbAccount');
            Route::get('countDyLiveAccount', 'api/v1.Live/countDyLiveAccount');
            Route::get('countDyVideoAccount', 'api/v1.Live/countDyVideoAccount');
            // 导入major
            Route::post('importmajor', 'api/v1.Live/importmajor');
            Route::post('insertMajor', 'api/v1.Live/insertMajor');
            // 场次入库
            Route::post('session', 'api/v1.Live/session');

            //账号列表
            Route::post('contactList', 'api/v1.Live/contactList');

            //智能直播3.0
            Route::get('test', 'api/v1.Live/test');
            Route::post('addPlan', 'api/v1.Live/addPlan');
            Route::get('delPlan', 'api/v1.Live/delPlan');
            Route::post('addGroup', 'api/v1.Live/addGroup');
            Route::get('delGroup', 'api/v1.Live/delGroup');
            Route::post('addChild', 'api/v1.Live/addChild');
            Route::get('delChild', 'api/v1.Live/delChild');
            Route::get('groupList', 'api/v1.Live/groupList');
            Route::get('childList', 'api/v1.Live/childList');
            Route::get('planCache', 'api/v1.Live/planCache');// 计划下拉
            Route::get('chooseChild', 'api/v1.Live/chooseChild'); //child切换
            Route::get('getChildStatus', 'api/v1.Live/getChildStatus'); //child获取当前是否讲话


        });


        Route::group('ai',function (){
            Route::get('voice', 'api/v1.Ai/voice');
            Route::post('ksVoice', 'api/v1.Ai/ksVoice');

            Route::get('models', 'api/v1.Ai/models');
            Route::get('text/refresh', 'api/v1.Ai/textRefresh');
            Route::post('teaseapart', 'api/v1.Ai/teaseapart');
            Route::get('text/titleRefresh', 'api/v1.Ai/titleRefresh');

            Route::post('trans', 'api/v1.Ai/trans');

        });


        Route::group('upload',function (){
            //视频上传模块 销豹 视频下订单
            Route::post('xb/order', 'api/v1.Upload/xbOrder');

            //视频上传模块 销豹 视频下订单回调
            Route::post('xb/notify', 'api/v1.Upload/xbNotify');

            // 自营对口型 获取对口型任务
            Route::get('getUpload', 'api/v1.Upload/getUpload');

            Route::get('getUploadFail', 'api/v1.Upload/getUploadFail');

            // 回填对口型 回填对口型任务
            Route::post('latentsync', 'api/v1.Upload/backSyncTask');


            Route::post('createUpload', 'api/v1.Upload/createUpload');

            Route::get('qiniu/token', 'api/v1.Upload/getQiniuToken');
            Route::get('qiniu/buckettoken', 'api/v1.Upload/getQiniuBucketToken');

            Route::post('updateUpload', 'api/v1.Upload/updateUpload');

            Route::post('uploadVideo', 'api/v1.Upload/uploadVideo');

            Route::post('uploadPic', 'api/v1.Upload/uploadPic');

            Route::post('list', 'api/v1.Upload/list');

            Route::post('addUpload', 'api/v1.Upload/addUpload');

            Route::post('check', 'api/v1.Upload/check');
            Route::post('checkByMainTaskId', 'api/v1.Upload/checkByMainTaskId');

            Route::post('findUpload', 'api/v1.Upload/findUpload');

            Route::post('randomGet', 'api/v1.Upload/randomGet');
            // 重置upload
            Route::get('resetUpload', 'api/v1.Upload/resetUpload');

            Route::get('getQiniuNull', 'api/v1.Upload/getQiniuNull');


        });



        Route::group('task',function (){
            //视频同步 逛逛插件端同步到素材表
            Route::post('create', 'api/v1.Task/create');


        });


        Route::group('sync',function (){
            //视频同步 逛逛插件端同步到素材表
            Route::post('from/guang', 'api/v1.Sync/create');
            // 拉取素材
            Route::get('getOne', 'api/v1.Sync/getOne');
            // 新增分发数据
            Route::post('createDistribute', 'api/v1.Sync/createDistribute');
            // 分发数据列表
            Route::post('getSyncList', 'api/v1.Sync/getSyncList');
            // 拉取分发数据
            Route::get('getDistribute', 'api/v1.Sync/getDistribute');
            // 更新分发状态
            Route::post('updateDistribute', 'api/v1.Sync/updateDistribute');
            // 改写标题
            Route::get('getTitle', 'api/v1.Sync/getTitle');
            // 获取视频文案
            Route::get('getCopywriting', 'api/v1.Sync/getCopywriting');
            // 获取素材详情
            Route::get('getInfo', 'api/v1.Sync/getInfo');

            Route::get('upDistributeRemark', 'api/v1.Sync/upDistributeRemark');

            Route::get('pull', 'api/v1.Sync/pullFromGuang');

            Route::get('getDraft', 'api/v1.Sync/getDraft');
            Route::get('todayData', 'api/v1.Sync/todayData');
            // 京东导出
            Route::get('exportDistribute', 'api/v1.Sync/exportDistribute');
            // 京东回填
            Route::post('importDistribute', 'api/v1.Sync/importDistribute');
        });

        Route::group('material',function (){
            Route::post('checkMaterial', 'api/v1.Material/checkMaterial');
            Route::post('checkMaterial1', 'api/v1.Material/checkMaterial1');
            Route::post('addMaterial', 'api/v1.Material/addMaterial');
            Route::post('getMaterial', 'api/v1.Material/getMaterial');
            Route::post('getMaterial_hj', 'api/v1.Material/getMaterial_hj');
            Route::post('backfillMaterial', 'api/v1.Material/backfillMaterial');
            Route::post('check', 'api/v1.Material/check');
            Route::get('checkKou', 'api/v1.Material/checkKou');
        });

        Route::group('materialaudio',function (){
            Route::post('checkMaterialAudio', 'api/v1.MaterialAudio/checkMaterialAudio');
            Route::post('addMaterialAudio', 'api/v1.MaterialAudio/addMaterialAudio');
            Route::get('getMaterialAudio', 'api/v1.MaterialAudio/getMaterialAudio');
            Route::post('upMaterialAudio', 'api/v1.MaterialAudio/upMaterialAudio');
        });

        Route::group('jd',function (){

            Route::post('addDis', 'api/v1.Jd/addDis'); //新增任务


            Route::post('addEvent', 'api/v1.Jd/addEvent'); //新增任务
            Route::get('getEvent', 'api/v1.Jd/getEvent'); //获取任务
            Route::post('backfillEvent', 'api/v1.Jd/backfillEvent'); //回填任务
            Route::post('backfillDistribute', 'api/v1.Jd/backfillDistribute'); //回填分发
            Route::post('addDistribute', 'api/v1.Jd/addDistribute'); //新增分发
            Route::get('getAccountList', 'api/v1.Jd/getAccountList'); //新增分发
            Route::get('getDistribute', 'api/v1.Jd/getDistribute'); //领取分发
            Route::post('updateDistribute', 'api/v1.Jd/updateDistribute'); //更新分发
        });
    });


})->middleware(['Auth','ReflexValidate'])->allowCrossDomain();

